using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using Utils.WebFramework;

namespace Utils.WebFramework
{
    public class ViewPage : System.Web.UI.Page
    {
        public override void ProcessRequest(HttpContext context)
        {
            actonResult = (ActionResult)context.Items["__actionresult"];
            if (actonResult == null)
            {
                actonResult = new ActionResult();
            }

            resource = (Resource)context.Items["__resource"];
            if (resource == null)
            {
                resource = new Resource();
            }

            httper = (Httper)context.Items["__httper"];
            if (httper == null)
            {
                httper = new Httper();
            }

            base.ProcessRequest(context);
        }

        public ActionResult ActionResult
        {
            get { return actonResult; }
        }

        public Resource Resource
        {
            get { return resource; }
        }

        public Httper Httper 
        {
            get { return httper; }
        }
        
        private ActionResult actonResult = null;
        private Resource resource = null;
        private Httper httper = null;
    }
}
